home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d26
/
scieqs13.arc
/
EXAMPLE1
next >
Wrap
Text File
|
1989-08-30
|
613b
|
17 lines
!echo
; This file shows how expressions are evaluated in SCIEQS.
; An expression can be entered at the ">" prompt and evaluated.
2 + 3 * 4
; The answer is then displayed. Notice that the multiplication
; was completed before the addition because of the precedence rules.
; The answer can also be stored in variables and used later by
; refering to the variable names.
x = 2 + 3 * 4
y = sqrt(x) ;'y' gets the square root of 'x'
!list
; Because variable 'y' is defined in terms of variable 'x', changing
; variable 'x' will automatically change variable 'y'.
x = (2 + 3) * 4
!list
!noecho